#include<bits/stdc++.h>
using namespace std;
int a[100005];
bool b[100005]={true};
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,i,s=0,m,j;
    cin>>n;
    s=n;
    for(i=0;i<n;i++)
    cin>>a[i];
    sort(a,a+n);
    for(i=n-1;i>=1;i--)
    {
        if(a[i]==a[i-1])
        {
            for(j=i-1;j>=0;j--)
            if(a[i]>a[j]&&b[j]==true) {
                b[j]=false;
                s--;
                break;
            }
        }
        else {
        s--;
        }
    }
    cout<<s<<endl;
    return 0;
}
